<?php	

	include("inc/joomlaInt.php");
	include("inc/inc_configuration.php");
	include("inc/inc_abwesenheit.php");
	
	if ($jUser==0)
	{
		echo "Bitte zuerst einloggen!";
	}
	else
	{
		$sT = $_POST["sT"];
		$sM = $_POST["sM"];
		$sJ = $_POST["sJ"];
		
		$bT = $_POST["bT"];
		$bM = $_POST["bM"];
		$bJ = $_POST["bJ"];
		
		$reason = $_POST["content"];
		
		$start = mktime(0,0,0,$sM,$sT,$sJ);
		$end = mktime(0,0,0,$bM,$bT,$bJ);
		
		$dateAdded = time();
		
		$q=abwesenheit_anlegen ($jUser,$start,$end,$reason,$dateAdded);
		
		echo 'Sie werden weitergeleitet... <meta http-equiv="refresh" content="0; URL=abwesenheit.php">   ';
	}
?>